public class Third{
    public static void bubbleSort(Comparable[] comparable){
        for(int i = 0;i < comparable.length -1;i++){
            for(int j = 0;j < comparable.length -1-i;j++){
                if(comparable[j].compareTo(comparable[j+1]) > 0){
                    Comparable tmp = comparable[j];
                    comparable[j] = comparable[j + 1];
                    comparable[j+1] = tmp;
                }
            }
        }
    }
    }


